completing the square method for turning point